package com.yejiarong.elasticsearch.api.bean.request.query;

import com.yejiarong.elasticsearch.api.enums.QueryType;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * @author YeJR
 * @date 2025/6/4
 * @description:
 */
@Data
public class Query {

    @NotNull(message = "查询类型不能为空")
    private QueryType type;

    @NotBlank(message = "查询字段不能为空")
    private String field;

    @NotEmpty(message = "查询对应的值不能为空")
    private List<Object> values;

}
